//
//  noDataVAndNoLableiew.m
//  CampusThrowing
//
//  Created by edz on 2019/8/19.
//  Copyright © 2019年 edz. All rights reserved.
//

#import "noDataVAndNoLableiew.h"

@implementation noDataVAndNoLableiew
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        UIImageView *imgView = [[UIImageView alloc]init];
         self.nodataImgViwe = imgView;
        self .nodataImgViwe.image = [UIImage imageNamed:@"nodataImg"];
        [self addSubview:self .nodataImgViwe];
        
        myLable *lable = [[myLable alloc]init];
         self.nodataLable = lable;
        [self.nodataLable setLabletextColor:[UIColor colorWithRed:144/255.0 green:144/255.0 blue:144/255.0 alpha:1.0] Text:@"还没有添加数据" TextFont:12];
       self.nodataLable.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.nodataLable];
        
        
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews ];
    
    self.nodataImgViwe.frame = CGRectMake(0, 0, 140, 116);
    self.nodataLable.frame = CGRectMake(0, 96, 140, 14);
    
    
    
    
    
    
    
    
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
